<?php
require_once 'Zend/View/Abstract.php';

class Impact_View extends Zend_View_Abstract
{
    private $_renderLocals = null;

    public function render($name, $renderLocals=array())
    {
        $this->_renderLocals = $renderLocals;
        $result = parent::render($name);
        $this->_renderLocals = null;

        return $result;
    }

    protected function _run()
    {
        if(is_array($this->_renderLocals)) {
            extract($this->_renderLocals);
        }

        include func_get_arg(0);
    }
}

// vim: sw=4:ts=4:sts=4:et:foldmethod=marker
